package com.kylin.dal.entity.settings;

import com.kylin.shared.common.entity.BaseEntry;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 系统字典配置数据
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年11月07日 21:01
 */
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_system_dict", catalog = "db_kylin_artwork")
public final class DictionaryEntry extends BaseEntry implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column private Long id;

    @Column private String type;
    @Column private String code;
    @Column private String value;
    @Column private String description;
    @Column private Long parent;

    @Column(name = "value_type", columnDefinition = "TINYINT")
    private Integer valueType;

    @Column(columnDefinition = "BIT")
    private Integer removed;

    @Column(name = "created_at")
    private Long createdAt;

    @Column(name = "updated_at")
    private Long updatedAt;

    @Column(name = "removed_at")
    private Long removedAt;
}
